package tt.dz.appserver.service.avro.testm;

import java.net.InetSocketAddress;

import org.apache.avro.Protocol;
import org.apache.avro.ipc.NettyServer;
import org.apache.avro.ipc.Responder;
import org.apache.avro.ipc.Server;

import tt.dz.appserver.util.resource.ResourceUtils;

public class MServer {


	private static Server server;
	
	public static Responder responder;
	
	public static void main(String[] args) {
		Protocol protocol = Protocol.parse(ResourceUtils.getRootResource("avro/app/Person.json"));
		responder = new RPCInterfaceService(protocol);
		server = new NettyServer(responder, new InetSocketAddress(9512));
		server.start();
	}
}
